/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* 菜单样式 */
.menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: white;
  z-index: 1000;
}
/* 菜单样式 */
.menu-normal {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    z-index: 1000;
}

.menu-button {
    display: block;
    width: 200px;
    margin: 10px auto;
    padding: 10px;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu-button:hover {
    background-color: #45a049;
}

/* 游戏UI样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: white;
    z-index: 100;
}

.game-stats {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
}

.score-container,
.level-container,
.theme-container {
    margin: 5px 0;
    font-size: 18px;
}

/* 进度条容器样式 */
.progress-container {
    margin-top: 10px;
    text-align: center;
}

.progress-bar {
    width: 200px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin: 5px auto;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.next-level {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 暂停按钮样式 */
#pauseButton {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid white;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

#pauseButton:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* 设置面板样式 */
.setting-item {
    margin: 15px 0;
    text-align: left;
}

.setting-item label {
    display: block;
    margin-bottom: 5px;
}

.setting-item input[type="range"] {
    width: 100%;
}

/* 通用样式 */
.hidden {
    display: none !important;
}

/* 游戏结束菜单样式 */
.score-display {
    margin: 20px 0;
    font-size: 18px;
}

/* 操作说明样式 */
.instructions-content {
    text-align: left;
    margin: 20px 0;
}

.instructions-content p {
    margin: 10px 0;
}

/* 游戏标题样式 */
.game-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: #4CAF50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.instructions-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    margin: 10px 0;
}

.instruction-section {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.instruction-section h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 5px;
}

.control-item {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key {
    background: #ffd700;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.powerup-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.2s;
}

.powerup-item:hover {
    transform: translateX(5px);
}

.powerup-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.powerup-icon.speed { background: rgba(255, 215, 0, 0.2); }
.powerup-icon.shield { background: rgba(0, 191, 255, 0.2); }
.powerup-icon.magnet { background: rgba(255, 0, 255, 0.2); }
.powerup-icon.slow { background: rgba(144, 238, 144, 0.2); }

.powerup-desc {
    flex: 1;
}

.powerup-desc strong {
    color: #ffd700;
    display: block;
    margin-bottom: 5px;
}

.rules-list {
    list-style-type: none;
    padding: 0;
}

.rules-list li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.rules-list li:before {
    content: "•";
    color: #ffd700;
    position: absolute;
    left: 0;
}

.rules-list ul {
    list-style-type: none;
    padding-left: 20px;
    margin: 5px 0;
}

.rules-list ul li:before {
    content: "▹";
    margin-right: 8px;
    color: #ffd700;
}

.theme-item {
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.theme-item strong {
    color: #ffd700;
    font-size: 1.1em;
}

/* 自定义滚动条样式 */
.instructions-container::-webkit-scrollbar {
    width: 8px;
}

.instructions-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.instructions-container::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 4px;
}

.instructions-container::-webkit-scrollbar-thumb:hover {
    background: #e6c300;
}

/* 新手引导样式 */
.tutorial-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    z-index: 1001;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#tutorialText {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
}

#tutorialOverlay .menu-button {
    display: inline-block;
    width: auto;
    padding: 10px 20px;
    margin: 10px;
}

#tutorialOverlay .menu-button#skipTutorialButton {
    background-color: #f44336;
}

#tutorialOverlay .menu-button#skipTutorialButton:hover {
    background-color: #d32f2f;
}

/* 用于高亮引导元素的样式 */
.tutorial-highlight {
    position: relative;
    z-index: 1002;
    box-shadow: 0 0 0 5px rgba(255, 255, 0, 0.7);
    border-radius: 5px;
    transition: box-shadow 0.3s ease-in-out;
} 